package com.songlanyun.modules.coupon.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.coupon.entity.CouponEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songlanyun.modules.coupon.model.vo.CouponEntityVo;
import com.songlanyun.modules.coupon.model.dto.CouponPageReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 优惠券
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2022-07-05 15:20:02
 */
@Mapper
public interface CouponDao extends BaseMapper<CouponEntity> {

    CouponEntityVo loadByCouponSlimEntity(Long couponId);

    IPage<CouponEntityVo> queryCouponPage(IPage<CouponEntityVo> page, @Param("req") CouponPageReq req);
}
